package edu.scau.pos.refund.vo;

import edu.scau.pos.refund.domain.RefundRecordItem;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Data
public class RefundRecordVo implements Serializable {
    private static final long serialVersionUID = 1L;
    @Schema(name = "refundId",description = "流程ID")
    private String refundId;
    @Schema(name = "orderId",description = "退款订单ID")
    private String orderId;
    @Schema(name = "refundDate",description = "申请日期")
    private Date refundDate;
    @Schema(name = "status",description = "退款状态：0：已完成；1：异常")
    private int status;
    @Schema(name = "type",description = "退款类型")
    private int type;
    @Schema(name = "refundAmount",description = "退款金额",type = "double")
    private double refundAmount;
    @Schema(name = "refundRecordItemList",description = "退款商品")
    private List<RefundRecordItemVo> refundRecordItemList;

    public RefundRecordVo(String refundId, String orderId, Date refundDate, int status, int type, double refundAmount, List<RefundRecordItemVo> refundRecordItemList) {
        this.refundId = refundId;
        this.orderId = orderId;
        this.refundDate = refundDate;
        this.status = status;
        this.type = type;
        this.refundAmount = refundAmount;
        this.refundRecordItemList = refundRecordItemList;
    }

    public RefundRecordVo() {
    }
}
